/*****************************************************
 * jr generated file
 ****************************************************/
import java.lang.*;
import java.io.*;
import edu.ucdavis.jr.*;
import edu.ucdavis.jr.jrx.*;
import java.rmi.*;
import java.io.Serializable;

public class Cap_DiffusionCountProcessorXbooleanTovoid extends Cap implements Cloneable, Serializable
{
    public static Cap_DiffusionCountProcessorXbooleanTovoid noop = new Cap_DiffusionCountProcessorXbooleanTovoid(true);
    private Op_DiffusionCountProcessorXbooleanTovoid.JRProxyOp theop;
    private static int capnum = 1;
    public Cap_DiffusionCountProcessorXbooleanTovoid()
    {}
    private Cap_DiffusionCountProcessorXbooleanTovoid(boolean noop)
    {
	super();
	this.is_noop = noop;
    }
    public Cap_DiffusionCountProcessorXbooleanTovoid(Cap_DiffusionCountProcessorXbooleanTovoid theCap)
    {
	this(theCap.theop);
    }
    public Cap_DiffusionCountProcessorXbooleanTovoid(Op_DiffusionCountProcessorXbooleanTovoid.JRProxyOp theop)
    {
	super();
	this.theop = theop;
    }
    public void call(long JRtimestamp, DiffusionCountProcessor arg0, boolean arg1)

    {
	if (is_noop)
	    return;
	this.theop.call(JRtimestamp, arg0, arg1);
    }
    public Cap_voidTovoid cocall(long JRtimestamp, DiffusionCountProcessor arg0, boolean arg1)

    {
	try {
	if (is_noop) {
		Op_voidTovoid.JRProxyOp myretOp = new Op_voidTovoid.JRProxyOp(new InOp_voidTovoid_impl());
		myretOp.send(jrvm.getTimestamp());
		return new Cap_voidTovoid(myretOp);
	}
;
	return this.theop.cocall(JRtimestamp, arg0, arg1);
	 } catch (RemoteException re) {throw new edu.ucdavis.jr.jrCommunicationException(re); }
    }
    public Cap_voidTovoid cocall(long JRtimestamp, edu.ucdavis.jr.RemoteHandler handler, Cap_voidTovoid fretOp, DiffusionCountProcessor arg0, boolean arg1)
    {
	try {
	if (is_noop) {
		Op_voidTovoid.JRProxyOp myretOp = new Op_voidTovoid.JRProxyOp(new InOp_voidTovoid_impl());
		myretOp.send(jrvm.getTimestamp(), handler);
		return new Cap_voidTovoid(myretOp);
	}
;
	return this.theop.cocall(JRtimestamp, handler, fretOp, arg0, arg1);
	 } catch (RemoteException re) {throw new edu.ucdavis.jr.jrCommunicationException(re); }
    }
    public void send(long JRtimestamp, edu.ucdavis.jr.RemoteHandler handler, DiffusionCountProcessor arg0, boolean arg1)    {
	send(JRtimestamp, null, handler, null, arg0, arg1);
    }
    public void send(long JRtimestamp, Op_voidTovoid.JRProxyOp retOp, edu.ucdavis.jr.RemoteHandler handler, Exception e, DiffusionCountProcessor arg0, boolean arg1)
    {
	if (is_noop)
	    return;
	this.theop.send(JRtimestamp, retOp, handler, e, arg0, arg1);
    }
    public Cap_voidTovoid cosend(long JRtimestamp, edu.ucdavis.jr.RemoteHandler handler, DiffusionCountProcessor arg0, boolean arg1
)    {
	return cosend(JRtimestamp, null, handler, null, arg0, arg1);
    }
    public Cap_voidTovoid cosend(long JRtimestamp, Op_voidTovoid.JRProxyOp retOp, edu.ucdavis.jr.RemoteHandler handler, Exception e, DiffusionCountProcessor arg0, boolean arg1)
    {
	try {
	if (is_noop) {
		Op_voidTovoid.JRProxyOp myretOp = new Op_voidTovoid.JRProxyOp(new InOp_voidTovoid_impl());
		myretOp.send(jrvm.getTimestamp());
		return new Cap_voidTovoid(myretOp);
	}
	return this.theop.cosend(JRtimestamp, retOp, handler, e, arg0, arg1);
	 } catch (RemoteException re) { throw new edu.ucdavis.jr.jrCommunicationException(re); }
    }
    public Recv_DiffusionCountProcessorXbooleanTovoid recv()
    {
	if (is_noop)
	{
	    jrvm.threadDeath();
	    while (true) Thread.yield();
	}
	return this.theop.recv();
    }
    public int length()
    {
	if (is_noop)
	    return 0;
	return this.theop.length();
    }
    public long getFirstTime()
    {
	if (is_noop)
	    return -1;
	return this.theop.getFirstTime();
    }
    public InLock getLock()
    {
	try {
	if (is_noop)
	    return new InLock_impl(jrvm.thisVM.getName(), false);
	} catch (RemoteException e) { throw new edu.ucdavis.jr.jrCommunicationException(e); }
	return this.theop.getLock();
    }
    public InOpIterator elements()
    {
	try {
	if (is_noop)
	    return new InOpIterator_impl(new InOpIteratorRemote_impl());
	} catch (RemoteException e) { throw new edu.ucdavis.jr.jrCommunicationException(e); }
	return this.theop.elements();
    }
    public boolean isRemote(String site)
    {
	if (is_noop)
	    return false;
	return this.theop.isRemote(site);
    }
    public boolean isCap(int cap)
    {
	return cap == this.capnum;
    }
    public Object getCap(int cap)
    {
	return this;
    }
    public Object getOp()
    {
	return theop;
    }
    public Object clone()
    {
	try
	{
	    Cap_DiffusionCountProcessorXbooleanTovoid obj = (Cap_DiffusionCountProcessorXbooleanTovoid)super.clone();
	    obj.theop = this.theop;
	    return obj;
	}
	catch (CloneNotSupportedException e)
	{
	    throw new jrRuntimeError(e.toString());
	}
    }
}
